#例3-3 绘制正方形
import turtle
turtle.setpos(0,400/(2**0.5))
turtle.seth(225)

turtle.fd(50)
turtle.lt(90)
turtle.fd(50)
turtle.lt(90)
turtle.fd(50)
turtle.lt(90)
turtle.fd(50)

turtle.seth(225)
turtle.fd(100)
turtle.lt(90)
turtle.fd(100)
turtle.lt(90)
turtle.fd(100)
turtle.lt(90)
turtle.fd(100)

turtle.seth(225)
turtle.fd(200)
turtle.lt(90)
turtle.fd(200)
turtle.lt(90)
turtle.fd(200)
turtle.lt(90)
turtle.fd(200)

turtle.seth(225)
turtle.fd(300)
turtle.lt(90)
turtle.fd(300)
turtle.lt(90)
turtle.fd(300)
turtle.lt(90)
turtle.fd(300)



turtle.lt(45+90)
turtle.fd(425)
turtle.done()
